<template>
  <div class="h5-wrapper">
    <div class="content">
      内容部分
    </div>
<router-view></router-view>
      <van-tabbar route>
    <van-tabbar-item to="/article" icon="fire-o">面经</van-tabbar-item>
    <van-tabbar-item to="/collect" icon="star-o">收藏</van-tabbar-item>
    <van-tabbar-item to="/like" icon="like-o">喜欢</van-tabbar-item>
    <van-tabbar-item to="/user" icon="user-o">我的</van-tabbar-item>
</van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'LayoutPage'
}
</script>

<style>
body{
  margin: 0;
  padding: 0;
}
</style>
<style lang="less" scoped>
.h5-wrapper {
  .content {
    margin-bottom: 51px;
  }
  .tabbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: flex;
    background: #fff;
    border-top: 1px solid #e4e4e4;
    a {
      flex: 1;
      text-decoration: none;
      font-size: 14px;
      color: #333;
      -webkit-tap-highlight-color: transparent;
      &.router-link-active {
        color: #fa0;
      }
    }
  }
}
</style>
